package routers

import (
	"sharePicture/controller"

	"github.com/gin-gonic/gin"
)

func PictureRouter(r *gin.Engine) {
	rg := r.Group("/picture")
	{
		rg.GET("/getGroupsList", controller.GetGroupsList)   //得到标签集合
		rg.GET("/getPictureInfo", controller.GetPictureInfo) //查看照片详情
		rg.GET("/collectPicture")                            //查看个人收藏照片
		rg.GET("/likePicture")                               //点赞照片
		rg.GET("/noCollectPicture")                          //取消收藏照片
		rg.GET("/noLikePicture")                             //取消点赞照片
		rg.GET("/delPicture")                                //用户删除照片
		rg.GET("delCollectPicture")                          //删除收藏

		rg.POST("/uploadHeadImg")                               //更改头像
		rg.POST("/uploadMoreProduct", controller.UploadPicture) //用户发布多张照片
	}
}
